package com.example.bookmanager.Model;

import lombok.Data;

@Data
public class RequestPage { //前端来发送的request请求
    public Integer currentPage = 1;
    public Integer pageSize = 5;

    public Integer getOffset(){
        return (currentPage - 1) * pageSize;
    }


}
